﻿using System.ComponentModel.DataAnnotations;

namespace B.S.BasicData.Write.Api.Dto
{ 
    /// <summary>
    /// 箱子列表Dto
    /// </summary>
    public class BoxListDto
    {

        public int Id { get; set; }
        /// <summary>
        /// 箱子名称
        /// </summary>
        [Required(ErrorMessage = "箱子名称不能为空")]
        public string? BoxName { get; set; }
        /// <summary>
        /// 箱子长度(CM)
        /// </summary>
        [Required(ErrorMessage = "箱子长度不能为空")]
        public int length { get; set; }
        /// <summary>
        /// 箱子宽度(CM)
        /// </summary>
        [Required(ErrorMessage = "箱子宽度不能为空")]
        public int Width { get; set; }
        /// <summary>
        ///箱子高度(CM)
        /// </summary>
        [Required(ErrorMessage = "箱子高度不能为空")]
        public int Height { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [Required(ErrorMessage = "备注不能为空")]
        [MaxLength(30, ErrorMessage = "备注长度不能超过30字符")]
        public string? Remark { get; set; }
        /// <summary>
        /// 状态 0:启用 1:禁用  默认为启用 0
        /// </summary>
        public int State { get; set; } = 0;
    }
}
